package MathHomeWorkTest;
/*
计算s=1+1/2+1/3····1/100
 */
public class MathTest13 {
    public static void main(String[] args){


        float sum = 0;
        for(float i = 1; i <= 100; i++){
            sum += 1/i;
        }
        System.out.println(sum);
    }
}
